﻿using Andy.Web.NguoiDungServiceReference;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Andy.Web.admin
{
    public partial class SiteAdmin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            #region check quyen
            var user = Session["nsd"] as NguoiDung;
            if (user == null)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "Redit", "alert('Không có quyền truy cập !'); window.location='" + Request.ApplicationPath + "admin/Default.aspx';", true);
            }

            #endregion check quyen
        }
    }
}